package com.zr.repertory.inventorySettings.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class WarehouseUpdateVo {
    @NotNull(message = "库房ID不能为空")
    private Integer warehouseid;//库房ID
    @NotBlank(message = "库房名称不能为空")
    private String warehousename;//库房名称
    @NotBlank(message = "库房编码不能为空")
    private String warehousecode;//库房编码
    @NotBlank(message = "库房地址不能为空")
    private String warehouseaddressa;//库房地址
    @NotBlank(message = "库房详细地址不能为空")
    private String warehouseaddressb;//库房详细地址
    @NotNull(message = "库房状态不能为空")
    private Boolean warehousestatus;//库房状态

    @NotBlank(message = "库房名称不能为空")
    private String warehouseremark;//库房描述

    private Integer warehousemarkid;//库房标示ID

    private String createname;//创建名称
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date createtime;//创建时间

    private String updatename;//修改名称
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date updatetime;//修改时间


}